<?php
namespace app\wechat\controller;
use app\api\service\Integral;

class WIntegral extends WCommon
{
    // 积分页
    public function index()
    {
        if (request()->isAjax()) {
            $param = [
                'member_id' => session('member_id'),
            ];
            $data = Integral::get_integral_list($param);
            return json($data);
        } else {
            return view();
        }
    }

}
